<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta content="target-densitydpi=device-dpi,width=device-width, width=640,user-scalable=no" name="viewport">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection"content="telephone=no, email=no" />
<title>订单确认-岛镇生活智能社区</title>
<meta name="Keywords" content="">
<meta name="Description" content="">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/property/css/reset.css" media="all">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/property/css/public.css" media="all">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/property/css/style.css" media="all">

<script type="text/javascript">
	function calTotalAmount(ckid, val) {
		var totalAmount = parseFloat(document.getElementById("totalAmount").innerText);
		var ck = document.getElementById(ckid);
	//	alert(ck.checked);
		if (ck.checked) {
			totalAmount += val;
		} else {
			totalAmount -= val;
		}
		document.getElementById("totalAmount").innerText = totalAmount;
	}
	
	function checkData() {
		var checked = false;
		var items = document.getElementsByName("feeId[]");
		for(var i = 0; i < items.length; i++) {
			if (items[i].checked) {
				checked = true;
				return checked;
			}
		}
		if(checked == false) {
			alert("请选择缴费月份");
			return false;
		}
		
	}
</script>


</head>

<body onselectstart="return true;" ondragstart="return false;" style="background:#f1f1f1;">
<div class="wy_body"  style="background:#f6f6f6">
   <header id="header" class="header fixed-top"><a href="wy2.html" class="back_ico"></a><h1 class="page-title">订单确认</h1></header>
   <div class="clear"></div>
   <form method="post" onsubmit="return checkData()" action="__URL__/wy4">
	<div class="wrap-page">
		<section class="wy_page mt20">
		<volist name="address" id="ad">
		 <div class="wy_form">
		   <div class="tit tit2"><b>缴费信息 <span class="n f16">{$ad.community_no}{$ad.building_no}{$ad.room_no}</span></b></div>
		 </div>
		 </volist>
		 <volist name="feeList" id="item">
		 <div class="wy_form">
		   <div class="tit"><span class="fr f14 fw">{$item.total_fee}元</span><span><input type="checkbox" name="feeId[]"  value="{$item.id}" id="ck{$item.id}" onclick="calTotalAmount('ck{$item.id}', {$item.total_fee})" class="icb"> {$item.year}年{$item.month}月</span></div>
		   <div class="pb10">
		     电费：{$item.electric_fee}元<br/> 水费：{$item.water_fee}元 
		   </div>
		  </div>
		  </volist>

		 <div class="wy_form">
		   <div class="tit"><b class="pay">支付方式</b></div>
		   <div style="margin-top:25px;"><input type="checkbox" checked="checked" class="icb"> <img src="__PUBLIC__/property/images/logo.png" class="pl10"></div>
		   
		 </div>
		 <div class="totalprice"><p>合计: <em class="h price">￥<label id="totalAmount">0.00</label></em></p><input class="c-btn-orgn c-btn-sub" type="submit" value="提交订单"/></div>

		</section>
		
	</div>
	</form>
	
</div>

</body></html>
